package com.workcell.workdata.xthings.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.workcell.workdata.xthings.constant.ExtOutputAttributes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 码库摄像头信息表
 *
 * @author zhangguangrui
 * @since 2023-03-16
 */
@Data
@TableName("t_code_camera")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "摄像头二维码")
public class CodeCamera extends Model<CodeCamera> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("二维码信息ID")
    @TableId("code_id")
	private String codeId;

    @ApiModelProperty("摄像头ID")
    @TableField("camera_id")
    private String cameraId;

    @ApiModelProperty("厂家设备编号")
    @TableField("device_no")
	@ExtOutputAttributes(key = "厂家设备编号")
    private String deviceNo;

    @ApiModelProperty("短链码")
    @TableField("chain_num")
    private String chainNum;

    @ApiModelProperty("设备名称")
    @TableField("name")
	@ExtOutputAttributes(key = "设备名称")
    private String name;

    @ApiModelProperty("厂商名称")
    @TableField("manufacturer")
	@ExtOutputAttributes(key = "厂商名称")
	private String manufacturer;

    @ApiModelProperty("产品类型")
    @TableField("dc_product_type")
	private String dcProductType;

    @ApiModelProperty("型号")
    @TableField("dc_model")
	@ExtOutputAttributes(key = "型号")
    private String dcModel;


    @ApiModelProperty("状态")
    @TableField("state")
    private String state;

	@ApiModelProperty("创建人")
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	@ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@ApiModelProperty("更新人")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private String updateBy;

	@ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;


}
